package com.yic.module.device.controller.admin.inspectionRecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 巡检/点检记录 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class InspectionRecordBaseVO {

    @Schema(description = "工单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "工单号不能为空")
    private String code;

    @Schema(description = "检验类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "检验类型不能为空")
    private Integer inspectionType;

    @Schema(description = "计划ID(检验类型为巡检时不为空)")
    private Long planId;

    @Schema(description = "设备ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "设备ID不能为空")
    private Long deviceId;

    @Schema(description = "任务ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long jobId;

}
